package com.thprojects.myphotomemories.model;

public class LoggedUser {
	String mName;
	String mPassword;
	
	
	//singleton
	private static LoggedUser mUser;
		
	public static LoggedUser getLoggedUser(){
		return mUser;
	}
	
	private LoggedUser(String name, String pwd){
		mName = name;
		mPassword = pwd;
	}
	
	public String getName(){
		return mName;
	}

	public String getPassword(){
		return mPassword;
	}
	
	public static LoggedUser login(String name, String pwd){
		mUser = new LoggedUser(name, pwd);
		return mUser;
	}
	
	public void logout(){
		mUser = null;
	}


}
